<%@ Page language="c#"%>
<%@ Import Namespace="Deepcode.Flux.Core.Extensions" %>
<HTML>
<HEAD>
	<TITLE>Flux.NET ECMS</title>
	<style>
		body
		{
			border-bottom: 1px solid silver;
		}
	</style>
	<LINK rel="stylesheet" type="text/css" href="../Asset/Style/GeneralStyle.css"/>
	<script runat="server">
	protected void Page_Load()
	{
		if (!Page.IsPostBack)
		{
			AddinTreeNode node = AddinTree.Tree.GetTreeNodeNoThrow("/Flux/LookFeel");
			if (node != null)
			{
				string src = (string)node.BuildChildItem("topbarLogo", this);
				toplogo.Src = src;
			}
		}
	}
	</script>
	<script language="javascript">
	function loadProfile()
	{
	    var ur_myprofile = '<%=Page.ResolveUrl("~/admin/Private/My/Profile/")%>';
	    var ur_loadmyprofile = '<%=Page.ResolveUrl("~/admin/Menu/appmainprofile.aspx")%>';

	    var appframe = window.top.frames["application"];
	    if( appframe == null ) return;
	    
	    var contentframe = appframe.frames["ContentFrame"];
	    if( contentframe == null )
	    {
	        // Load appmain into appframe and tell it to load my profile
	        appframe.location.href = ur_loadmyprofile;
	    }
	    else
	    {
	        // Load my profile into content frame
	        if( appframe.ContentJS )
	        {
                appframe.ContentJS.Navigate(ur_myprofile, 'My Profile');
            }
            else
            {
                contentframe.location.href = ur_myprofile;
            }
	    }
	}
	</script>
</HEAD>
<body class="nopad" background="../Asset/Image/Fluxtile.jpg">
<table width="100%" height="33" cellspacing="0" cellpadding="0" border="0">
<tr><td><img runat="server" id="toplogo" src="../Asset/Image/Fluxtopstrap.jpg" width="298" height="33" alt="" border="0"/></td>
	<td nowrap="true" align="right">
		<a href="appmain.aspx" class="fluxcolour" target="application">Taskpad Home</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    <a href="javascript:loadProfile();" class="fluxcolour">My Profile</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="../Public/Logout/default.aspx" class="fluxcolour" target="_top">Logout</a>
		
		<!---
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="javascript:window.top.resizeTo(1024,768);">1024*768</a>
		&nbsp;
		<a href="javascript:window.top.resizeTo(1280,1024);">1280*1024</a>
		--->
	</td>
	<td>&nbsp;&nbsp;</td>
</tr>
</table>
</body>
</HTML>